Running the Deployment Wizard

You can use the Deployment Wizard to accomplish the following tasks:

Deploying directly

When you deploy a project directly, you are copying the files to the host server(s) at the time of deployment.

Your Deployment Servers are selected automatically in the server list. Any remote servers that have been mapped to in the Files panel are also included in this list. You can deploy your project to any of these servers, however, only information for the Deployment Servers is included in the apf file for the project.

Note To deploy a project to localhost:
  1. Open the project that you want to deploy in the Projects panel.
  2. Select Projects > Deployment Wizard.
  3. In the first pane of the Deployment Wizard, click Direct Deployment, then click Next.
  4. In the second pane, select Local/Network Deployment and set file handling options.
  5. Click Next, then click Finish.

The Results window Deployment tab opens and shows the progress of the file transfer.

Note To deploy a project directly to one or more remote servers:
  1. Follow steps 1-3 in the preceding procedure.
  2. In the second pane, click Remote RDS/FTP Deployment, then click Next.
  3. Highlight entries in the Select Remote Deployment Server list if you need to deploy to defined servers other than those already associated with the project, then click Next.
  4. Click Finish.

Using deployment scripts

You can create a deployment script that you can run at any time. The most powerful benefit of scripts is that, once they have been generated, they can be modified with custom code and saved.

Deployment scripts are based on the Allaire Visual Tools Object Model (VTOM) and can be generated in either JScript or VBScript. For more information, see Scripting the Visual Tools Object Model in the online Help References.

You can generate three types of deployment scripts:

Note To create a deployment script:
  1. Open the project for which you want to generate a script.
  2. Click the Deploy Project button or select Project > Deployment Wizard.

    The Deployment Wizard window appears.

  3. Click Generate Deployment Script, then click Next.
  4. Enter a name for the script in the Deployment Task Name box.
  5. Select either VBScript or JScript from the Script Language Options.
  6. A pathname based on the project name is automatically entered for the script in the Save Script to File box. You can change it by entering a new pathname or clicking the Browse button to use the Save As dialog box.
  7. If you want to see the script in the Editor window, select the Open script in editor after generation option.
  8. Click Next.
  9. Select the type of script you want to generate, then click Next.
  10. Select destination, file, and logging options, then click Next
  11. Click Finish to generate the script.

    The script file is saved in the application root folder on the JRun server.

Managing deployment scripts

Expand the Deployment Scripts node and right-click a script to edit it, run it, see its properties, or remove it.

Saving deployment results

You can review the results of the last deployment by selecting View > Results > Deployment. Right-click in the Deployment pane to select display options.

Each succeeding deployment overwrites the Results window contents, but the information (including a date/time stamp for each deployed file) is appended to the deployment.log file in the root directory. This file can grow considerably over time, so you should reduce its size as needed.